//////////////////////////////////////////////////
// STUDENT RESEARCH PROJECT						//
// UNIVERSITY OF HAGEN 2012						//
// File:	RS232Trace.cpp						//
// Date:	01.09.2012							//
// Author:	Max Pejs							//
//////////////////////////////////////////////////

#include "RS232Trace.h"

SoftwareSerial * serial;
RS232Trace* RS232Trace::owner = NULL;

RS232Trace::RS232Trace()
{
	serial = new SoftwareSerial(0,1);
	serial->begin(38400);
};

SoftwareSerial * RS232Trace::GetSerial()
{
	return serial;
};

RS232Trace * RS232Trace::GetInstance()
{
	if(owner == NULL)
	{
		owner = new RS232Trace();
	}
	return owner;
};